package com.ctshk.rpc.train.dto.h5;

import com.ctshk.rpc.train.dto.es.TrainNumberSeatLevelCacheDTO;
import com.ctshk.rpc.train.dto.es.TrainStopStationCacheDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 火车产品表
 * </p>
 *
 * @author lys
 * @since 2021-05-17
 */
@Data
@ApiModel(value="TrainProductCacheDTO对象", description="火车产品缓存对象")
public class TrainProductSeatH5DTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "产品id")
    private Long id;

    @ApiModelProperty(value = "产品编码")
    private String productCode;

    @ApiModelProperty(value = "出发城市id")
    private Long departureCityId;

    @ApiModelProperty(value = "出发城市名称")
    private String departureCityName;

    @ApiModelProperty(value = "到达城市id")
    private Long arriveCityId;

    @ApiModelProperty(value = "到达城市名称")
    private String arriveCityName;

    @ApiModelProperty(value = "火车车次id")
    private Long trainNumberId;

    @ApiModelProperty(value = "车次名称")
    private String trainNumberName;

    @ApiModelProperty(value = "到达时间")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm")
    private LocalDateTime terminusTime;

    @ApiModelProperty(value = "出发时间")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm")
    private LocalDateTime departureTime;

    @ApiModelProperty(value = "上车站id")
    private Long boardingStationId;

    @ApiModelProperty(value = "上车站名称")
    private String boardingStationName;

    @ApiModelProperty(value = "下车站点id")
    private Long alightingStationId;

    @ApiModelProperty(value = "下车站点名称")
    private String alightingStationName;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "产品来源")
    private Integer productSource;

    @ApiModelProperty(value = "运行时长")
    private String runningTime;

    @ApiModelProperty(value = "火车经停站信息")
    private List<TrainStopStationCacheDTO> trainStopStationCacheDTOS;

    @ApiModelProperty(value = "火车席位等级信息")
    private List<TrainNumberSeatLevelCacheDTO> trainNumberSeatLevelCacheDTOS;

}
